package com.zzh.rack;

import android.view.LayoutInflater;
import android.view.View;

import com.zzh.base.component.BaseActivity;
import com.zzh.tools.IntentUtil;
import com.zzh.tools.log.ToolLog;
import com.zzh.web.WebActivity;

public class MainActivity extends BaseActivity {

    @Override
    public View getRootView() {
        return LayoutInflater.from(this).inflate(R.layout.activity_main, null);
    }

    @Override
    public void findView() {
    }

    @Override
    public void setClickLinsener() {
        findBaseViewById(R.id.test).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ToolLog.i("mei you de shi ");
                hintLoading();
            }
        });
        findBaseViewById(R.id.skip_web).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                IntentUtil.get().goActivity(MainActivity.this, WebActivity.class);
            }
        });
    }

    @Override
    public void superBefore() {
        configAutoSize(false);
        super.superBefore();
    }

    @Override
    public void superAfter() {
        super.superAfter();
        showLoading(false);
    }
}
